package com.example.smartplay.mapper;

import com.example.smartplay.entity.Admin;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.smartplay.entity.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 
 * @since 2024-07-11
 */
@Mapper
public interface AdminMapper extends BaseMapper<Admin> {
    //根据用户名查询
    @Select("select * from admin where username = #{username}")
    Admin findByUsername(String username);
}
